package at.jku.pervasive.simulator;

import at.jku.pervasive.Position;

public class PositionBuffer
{
	private Position position;

	public synchronized Position get()
	{
		try
		{
			wait();
		} catch (InterruptedException e)
		{
			e.printStackTrace();
		}
		return position;
	}

	public synchronized void setPosition(Position pos)
	{
		this.position = pos;
		notifyAll();
	}

}